import request from '@/utils/request'

// 查询营销活动列表
export function listSaleActive(query) {
  return request({
    url: '/house_sale/SaleActive/list',
    method: 'get',
    params: query
  })
}

// 查询营销活动详细
export function getSaleActive(activeid) {
  return request({
    url: '/house_sale/SaleActive/' + activeid,
    method: 'get'
  })
}

// 新增营销活动
export function addSaleActive(data) {
  return request({
    url: '/house_sale/SaleActive',
    method: 'post',
    data: data
  })
}

// 修改营销活动
export function updateSaleActive(data) {
  return request({
    url: '/house_sale/SaleActive',
    method: 'put',
    data: data
  })
}

// 删除营销活动
export function delSaleActive(activeid) {
  return request({
    url: '/house_sale/SaleActive/' + activeid,
    method: 'delete'
  })
}
